package com.woniuxy.entity;

import java.util.List;

/**
 * <p>course题库的实体类<p>
 *
 * @author LSL
 * @date 2022/5/31 9:56
 */
public class Course {
    private int id; //题库id
    private String course;  //题库
    private String fName;   //父级题库名
    private String createTime;  //创建时间
    private String createUser;  //创建人
    private String updateTime;  //修改时间
    private String updateUser;  //修改人

    private List<Course> children;  //次级题库类
    public Course() {
    }


    public String getfName() {
        return fName;
    }

    public void setfName(String fName) {
        this.fName = fName;
    }


    public Course(int id, String course, String createTime, String createUser, String updateTime, String updateUser, List<Course> children) {
        this.id = id;
        this.course = course;
        this.createTime = createTime;
        this.createUser = createUser;
        this.updateTime = updateTime;
        this.updateUser = updateUser;
        this.children = children;
    }

    public List<Course> getChildren() {
        return children;
    }

    public void setChildren(List<Course> children) {
        this.children = children;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", course='" + course + '\'' +
                ", *fName* ='" + fName + '\'' +
                ", createTime='" + createTime + '\'' +
                ", createUser='" + createUser + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", updateUser='" + updateUser + '\'' +
                ", children=" + children +
                '}';
    }
}
